#include <stdio.h>
#include <string.h>

int a, b;
char comp[5];
int test;

int main() {
	test=0;
	while (1) {
		scanf("%d %s %d", &a, comp, &b);
		test++;

		if (!strcmp(comp, "E")) break;

		printf("Case %d: ", test);

		if (!strcmp(comp, "!=")) {
			if (a!=b) printf("true");
			else printf("false");
		}
		else if (!strcmp(comp, "<")) {
			if (a<b) printf("true");
			else printf("false");
		}
		else if (!strcmp(comp, "<=")) {
			if (a<=b) printf("true");
			else printf("false");
		}
		else if (!strcmp(comp, ">")) {
			if (a>b) printf("true");
			else printf("false");
		}
		else if (!strcmp(comp, ">=")) {
			if (a>=b) printf("true");
			else printf("false");
		}
		else if (!strcmp(comp, "==")) {
			if (a==b) printf("true");
			else printf("false");
		}
		
		printf("\n");
	}

	return 0;
}
